﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RBS.Common.JsonEntity;
using RBS.Core.Extension;

/// <summary>
/// Deed 的摘要说明
/// </summary>
public class SettleAccounts
{
    /// <summary>
    /// 结算类
    /// </summary>
    public SettleAccounts()
	{ 
	} 
    #region 第一步获取注册食客积分，优惠券信息
    #endregion
    #region 第二步扣除注册食客积分，优惠券
    #endregion 
    #region 第三步酒店优惠券赠送
    /// <summary>
    /// 获取酒店优惠券
    /// </summary> 
    /// <param name="hid"></param>
    /// <returns></returns> 
    public JsonData SelectDeedList(int hid = 0)
    {
        JsonData jsonData = ApiRepository.Get("api/Deed/HotelDeed?hotelid=" + hid);
        return jsonData;
    }
    /// <summary>
    /// 赠与用户
    /// </summary>
    /// <param name="uid"></param>
    /// <param name="apid"></param>
    /// <param name="num"></param>
    /// <returns></returns> 
    public JsonData Gift(int uid, int apid, int num = 1)
    {
        JsonData jsonData = ApiRepository.Get("api/Deed/HotelDeed?uid=" + uid + "&apid=" + apid + "&num=" + num);
        return jsonData;
    }
    #endregion 
}